projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbe1342
)
(pos_visible_p): Adjust X value if window is hscrolled.
author
Kim F. Storm
<storm@cua.dk>
Wed, 17 Aug 2005 14:59:41 +0000
(14:59 +0000)
committer
Kim F. Storm
<storm@cua.dk>
Wed, 17 Aug 2005 14:59:41 +0000
(14:59 +0000)
src/xdisp.c
patch
|
blob
|
history
diff --git
a/src/xdisp.c
b/src/xdisp.c
index 3cc42ecdb28697c69811b03c016ab5f52deab0fd..9b5b7edf035141c1f4da8050e5caeee0163d9711 100644
(file)
--- a/
src/xdisp.c
+++ b/
src/xdisp.c
@@
-1347,6
+1347,9
@@
pos_visible_p (w, charpos, x, y, rtop, rbot, exact_mode_line_heights_p)
current_header_line_height = current_mode_line_height = -1;
+ if (visible_p && w->hscroll > 0)
+ *x -= w->hscroll;
+
return visible_p;
}